#定义函数
def calculate(a,b):
    temp=a/b
    print(temp)
    return temp

#例子
def bmi(h,w):
    bmi=w/(h**2)
    print("您的bmi值为"+str(bmi))
    if bmi<=18.5:
        category="偏瘦"
    elif 18.5<bmi<=25:
        category="正常"
    elif 25<bmi<=30:
        category="偏胖"
    else:
        category="肥胖"
    print(f"您的bmi分类{category}")
    return bmi

bmi(1.62,54.3)

#引入模块

#1.
import statistics
print(statistics.median([1,2,3]))

#2.
from statistics import median,mean
print(median([19,-5,36]))
print(mean([19,-5,36]))

#3.
from statistics import *
print(mean([1,2,3,4]))